﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BUS;

namespace MasterPageGroupF3.AdminPages
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridViewFilterByStatus.Visible = false;
                GridViewFilterByProduct.Visible = false;                
            }
        }

        protected void FilterByStatus_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridView.Visible = false;
            GridViewFilterByProduct.Visible = false;
            GridViewFilterByStatus.Visible = true;
            //GridViewFilterByStatus.DataBind();            
        }

        protected void FilterByProduct_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridView.Visible = false;
            GridViewFilterByStatus.Visible = false;
            GridViewFilterByProduct.Visible = true;
            //GridViewFilterByStatus.DataBind();            
        }

       
        protected void ButtonReset_Click(object sender, ImageClickEventArgs e)
        {
            GridView.Visible = true;
            GridViewFilterByStatus.Visible = false;
            GridViewFilterByProduct.Visible = false;
        }

       
    }
}